package cqu.mvc;
import java.lang.reflect.Method;
import java.util.regex.Pattern;

/**
 * 结构化存储controller相关数据，抽象为Handler
 */
public class Handler {

    private Object controller;
    private Method method;
    private Pattern pattern;

    private final String requestType;

    public String getRequestType() {
        return requestType;
    }



    public Handler(Object controller, Method method, Pattern pattern,String requestType) {
        this.controller = controller;
        this.method = method;
        this.pattern = pattern;
        this.requestType =requestType;

    }

    public Object getController() {
        return controller;
    }

    public Method getMethod() {
        return method;
    }

    public Pattern getPattern() {
        return pattern;
    }

}